<?php

class LogoutController extends Controller {

    /**
     * Logs out the current user and redirect to homepage.
     */
    public function actionIndex() {
        Yii::app()->user->logout(false);
        Yii::app()->controller->redirect(array('/login'));
        //Yii::app()->controller->redirect(array('/member/login'));
    }

}